package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableCaching  //springCache注解支持
@SpringBootApplication //启动类
@MapperScan("com.itheima.reggie.mapper")//指定mybatis类所在的包
@EnableTransactionManagement//开启对事物管理的支持
@Slf4j
public class WebAppApplication {

        //运行当前启动类,初始化springboot环境(ioc容器)
            public static void main(String[] args) {
                SpringApplication.run(WebAppApplication.class,args);
                log.info("项目启动成功");
            }
}
